#ifndef RECORD_H
#define RECORD_H
#include <QDateTime>
#include <string>
#include <vector>
#include <QDebug>
using namespace std;
class Record{
    friend class ExpenseRecord;
    friend class IncomeRecord;
    private:
        QDateTime dateTime;
        string recordID;
        string recordInfo;
        string recordName;
        double amount;
        string recordNameID;
        string category;

public:
        Record();
        Record(int month, int day, int year, int hours, int minutes, string info, string name, string category, double amount);
        Record(QDateTime,string info, string name, string category, double amount );
        void set(int month, int day, int year, int hours, int minutes, string info, string name, string category, string id, double amount);
        void setcategory(string);
        string getcategory();
        string getname();
        string getinfo();
        double getamount();
        string getid();
        string getnameid();
        QString sgetdatetime();
        QDateTime getdatetime();

        void setid(string);
        void setname(string);
        void setnameid(string);
        void setamount(double);
        void setdatetime(QDateTime);
        void setdatetime(string);
        void setinfo(string);
        void operator=(Record copy);
        void print();
};
#endif // RECORD_H
